<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        body {
            background: #36465d;
        }
        .dance-container {
            height: 64px;
            left: 50%;
            margin: 32px 0 0 -32px;
            position: absolute;
            top: 50%;
            width: 64px;
        }
        .shadow {
            background: rgba(0, 0, 0, 0.4);
            border-radius: 50%;
            height: 8px;
            left: -10%;
            margin-top: -4px;
            position: absolute;
            top: 100%;
            width: 120%;
            z-index: 1;
            -webkit-animation: shadow 0.5s linear infinite alternate;
            -moz-animation: shadow 0.5s linear infinite alternate;
            animation: shadow 0.5s linear infinite alternate;
            -webkit-transform: translateX(-50%);
            -moz-transform: translateX(-50%);
            -ms-transform: translateX(-50%);
            -o-transform: translateX(-50%);
            transform: translateX(-50%);
        }
        .avatar-container {
            height: 64px;
            left: 0;
            position: absolute;
            top: 0;
            width: 64px;
            z-index: 2;
            -webkit-animation: the-forbidden-dance 0.5s linear infinite alternate;
            -moz-animation: the-forbidden-dance 0.5s linear infinite alternate;
            animation: the-forbidden-dance 0.5s linear infinite alternate;
            -webkit-transform-origin: center bottom;
            -moz-transform-origin: center bottom;
            -ms-transform-origin: center bottom;
            -o-transform-origin: center bottom;
            transform-origin: center bottom;
        }
        .avatar {
            background: url("../img/bmm02.jpg") no-repeat center center;
            background-size: contain;
            border-radius: 3px;
            height: 100%;
            width: 100%;
            -webkit-animation: do-a-flip 10s linear 0.5s infinite;
            -moz-animation: do-a-flip 10s linear 0.5s infinite;
            animation: do-a-flip 10s linear 0.5s infinite;
        }
        @-webkit-keyframes the-forbidden-dance {
            0% {
                -webkit-transform: translate3d(0, -180px, 0) scaleY(1);
                -webkit-animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
            }
            80% {
                -webkit-transform: translate3d(0, 0, 0) scaleY(2) scaleX(0.6);
            }
            90% {
                -webkit-transform: translate3d(0, 0, 0) scaleY(0.4) scaleX(1);
            }
            100% {
                -webkit-transform: translate3d(0, 0, 0) scaleY(0.25) scaleX(2);
            }
        }
        @-moz-keyframes the-forbidden-dance {
            0% {
                -moz-transform: translate3d(0, -180px, 0) scaleY(1);
                -moz-animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
            }
            80% {
                -moz-transform: translate3d(0, 0, 0) scaleY(2) scaleX(0.6);
            }
            90% {
                -moz-transform: translate3d(0, 0, 0) scaleY(0.4) scaleX(1);
            }
            100% {
                -moz-transform: translate3d(0, 0, 0) scaleY(0.25) scaleX(2);
            }
        }
        @keyframes the-forbidden-dance {
            0% {
                -webkit-transform: translate3d(0, -180px, 0) scaleY(1);
                -moz-transform: translate3d(0, -180px, 0) scaleY(1);
                -ms-transform: translate3d(0, -180px, 0) scaleY(1);
                -o-transform: translate3d(0, -180px, 0) scaleY(1);
                transform: translate3d(0, -180px, 0) scaleY(1);
                -webkit-animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
                -moz-animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
                animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
            }
            80% {
                -webkit-transform: translate3d(0, 0, 0) scaleY(2) scaleX(0.6);
                -moz-transform: translate3d(0, 0, 0) scaleY(2) scaleX(0.6);
                -ms-transform: translate3d(0, 0, 0) scaleY(2) scaleX(0.6);
                -o-transform: translate3d(0, 0, 0) scaleY(2) scaleX(0.6);
                transform: translate3d(0, 0, 0) scaleY(2) scaleX(0.6);
            }
            90% {
                -webkit-transform: translate3d(0, 0, 0) scaleY(0.4) scaleX(1);
                -moz-transform: translate3d(0, 0, 0) scaleY(0.4) scaleX(1);
                -ms-transform: translate3d(0, 0, 0) scaleY(0.4) scaleX(1);
                -o-transform: translate3d(0, 0, 0) scaleY(0.4) scaleX(1);
                transform: translate3d(0, 0, 0) scaleY(0.4) scaleX(1);
            }
            100% {
                -webkit-transform: translate3d(0, 0, 0) scaleY(0.25) scaleX(2);
                -moz-transform: translate3d(0, 0, 0) scaleY(0.25) scaleX(2);
                -ms-transform: translate3d(0, 0, 0) scaleY(0.25) scaleX(2);
                -o-transform: translate3d(0, 0, 0) scaleY(0.25) scaleX(2);
                transform: translate3d(0, 0, 0) scaleY(0.25) scaleX(2);
            }
        }
        @-webkit-keyframes do-a-flip {
            0% {
                -webkit-transform: rotate(0deg);
            }
            21% {
                -webkit-transform: rotate(0deg);
                -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
            }
            28% {
                -webkit-transform: rotate(-360deg);
            }
            71% {
                -webkit-transform: rotate(-360deg);
                -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
            }
            78% {
                -webkit-transform: rotate(360deg);
            }
            100% {
                -webkit-transform: rotate(360deg);
            }
        }
        @-moz-keyframes do-a-flip {
            0% {
                -moz-transform: rotate(0deg);
            }
            21% {
                -moz-transform: rotate(0deg);
                -moz-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
            }
            28% {
                -moz-transform: rotate(-360deg);
            }
            71% {
                -moz-transform: rotate(-360deg);
                -moz-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
            }
            78% {
                -moz-transform: rotate(360deg);
            }
            100% {
                -moz-transform: rotate(360deg);
            }
        }
        @keyframes do-a-flip {
            0% {
                -webkit-transform: rotate(0deg);
                -moz-transform: rotate(0deg);
                -ms-transform: rotate(0deg);
                -o-transform: rotate(0deg);
                transform: rotate(0deg);
            }
            21% {
                -webkit-transform: rotate(0deg);
                -moz-transform: rotate(0deg);
                -ms-transform: rotate(0deg);
                -o-transform: rotate(0deg);
                transform: rotate(0deg);
                -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
                -moz-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
                animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
            }
            28% {
                -webkit-transform: rotate(-360deg);
                -moz-transform: rotate(-360deg);
                -ms-transform: rotate(-360deg);
                -o-transform: rotate(-360deg);
                transform: rotate(-360deg);
            }
            71% {
                -webkit-transform: rotate(-360deg);
                -moz-transform: rotate(-360deg);
                -ms-transform: rotate(-360deg);
                -o-transform: rotate(-360deg);
                transform: rotate(-360deg);
                -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
                -moz-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
                animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
            }
            78% {
                -webkit-transform: rotate(360deg);
                -moz-transform: rotate(360deg);
                -ms-transform: rotate(360deg);
                -o-transform: rotate(360deg);
                transform: rotate(360deg);
            }
            100% {
                -webkit-transform: rotate(360deg);
                -moz-transform: rotate(360deg);
                -ms-transform: rotate(360deg);
                -o-transform: rotate(360deg);
                transform: rotate(360deg);
            }
        }
        @-webkit-keyframes shadow {
            0% {
                opacity: 0.5;
                -webkit-transform: scaleX(0.5) scaleY(0.5);
                -webkit-animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
            }
            90% {
                opacity: 1;
                -webkit-transform: scaleX(1.15) scaleY(0.1);
            }
            100% {
                opacity: 1;
                -webkit-transform: scaleX(1.15) scaleY(0.1);
            }
        }
        @-moz-keyframes shadow {
            0% {
                opacity: 0.5;
                -moz-transform: scaleX(0.5) scaleY(0.5);
                -moz-animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
            }
            90% {
                opacity: 1;
                -moz-transform: scaleX(1.15) scaleY(0.1);
            }
            100% {
                opacity: 1;
                -moz-transform: scaleX(1.15) scaleY(0.1);
            }
        }
        @keyframes shadow {
            0% {
                opacity: 0.5;
                -webkit-transform: scaleX(0.5) scaleY(0.5);
                -moz-transform: scaleX(0.5) scaleY(0.5);
                -ms-transform: scaleX(0.5) scaleY(0.5);
                -o-transform: scaleX(0.5) scaleY(0.5);
                transform: scaleX(0.5) scaleY(0.5);
                -webkit-animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
                -moz-animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
                animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
            }
            90% {
                opacity: 1;
                -webkit-transform: scaleX(1.15) scaleY(0.1);
                -moz-transform: scaleX(1.15) scaleY(0.1);
                -ms-transform: scaleX(1.15) scaleY(0.1);
                -o-transform: scaleX(1.15) scaleY(0.1);
                transform: scaleX(1.15) scaleY(0.1);
            }
            100% {
                opacity: 1;
                -webkit-transform: scaleX(1.15) scaleY(0.1);
                -moz-transform: scaleX(1.15) scaleY(0.1);
                -ms-transform: scaleX(1.15) scaleY(0.1);
                -o-transform: scaleX(1.15) scaleY(0.1);
                transform: scaleX(1.15) scaleY(0.1);
            }
        }
    </style>
</head>
<body>
<div class="dance-container">
    <div class="avatar-container">
        <div class="avatar"></div>
    </div>
    <div class="shadow"></div>
</div>
</body>
</html>